package com.woniuxy;

import com.woniuxy.entity.RbacRole;
import com.woniuxy.service.RbacRoleService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;


/**
 * 预编译代码演示
 */
public class MyTest {
    public static void main(String[] args)  {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        RbacRoleService rbacRoleService = applicationContext.getBean("rbacRoleServiceImpl",RbacRoleService.class);
        RbacRole rbacRole = new RbacRole();
        rbacRole.setRname("11");
        rbacRole.setDescribe("xx");
        rbacRole.setStatus("Y");
        rbacRoleService.createOne(rbacRole);
    }
}
